﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200115D RID: 4445
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SetGenderCsReq : IMessage<SetGenderCsReq>, IMessage, IEquatable<SetGenderCsReq>, IDeepCloneable<SetGenderCsReq>, IBufferMessage
	{
		// Token: 0x17003841 RID: 14401
		// (get) Token: 0x0600C6EE RID: 50926 RVA: 0x00218C24 File Offset: 0x00216E24
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SetGenderCsReq> Parser
		{
			get
			{
				return SetGenderCsReq._parser;
			}
		}

		// Token: 0x17003842 RID: 14402
		// (get) Token: 0x0600C6EF RID: 50927 RVA: 0x00218C2B File Offset: 0x00216E2B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SetGenderCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003843 RID: 14403
		// (get) Token: 0x0600C6F0 RID: 50928 RVA: 0x00218C3D File Offset: 0x00216E3D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SetGenderCsReq.Descriptor;
			}
		}

		// Token: 0x0600C6F1 RID: 50929 RVA: 0x00218C44 File Offset: 0x00216E44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetGenderCsReq()
		{
		}

		// Token: 0x0600C6F2 RID: 50930 RVA: 0x00218C4C File Offset: 0x00216E4C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetGenderCsReq(SetGenderCsReq other) : this()
		{
			this.gender_ = other.gender_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600C6F3 RID: 50931 RVA: 0x00218C71 File Offset: 0x00216E71
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetGenderCsReq Clone()
		{
			return new SetGenderCsReq(this);
		}

		// Token: 0x17003844 RID: 14404
		// (get) Token: 0x0600C6F4 RID: 50932 RVA: 0x00218C79 File Offset: 0x00216E79
		// (set) Token: 0x0600C6F5 RID: 50933 RVA: 0x00218C81 File Offset: 0x00216E81
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public Gender Gender
		{
			get
			{
				return this.gender_;
			}
			set
			{
				this.gender_ = value;
			}
		}

		// Token: 0x0600C6F6 RID: 50934 RVA: 0x00218C8A File Offset: 0x00216E8A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SetGenderCsReq);
		}

		// Token: 0x0600C6F7 RID: 50935 RVA: 0x00218C98 File Offset: 0x00216E98
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SetGenderCsReq other)
		{
			return other != null && (other == this || (this.Gender == other.Gender && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600C6F8 RID: 50936 RVA: 0x00218CC8 File Offset: 0x00216EC8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Gender != Gender.None)
			{
				num ^= this.Gender.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600C6F9 RID: 50937 RVA: 0x00218D0D File Offset: 0x00216F0D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600C6FA RID: 50938 RVA: 0x00218D15 File Offset: 0x00216F15
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600C6FB RID: 50939 RVA: 0x00218D1E File Offset: 0x00216F1E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Gender != Gender.None)
			{
				output.WriteRawTag(56);
				output.WriteEnum((int)this.Gender);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600C6FC RID: 50940 RVA: 0x00218D50 File Offset: 0x00216F50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Gender != Gender.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.Gender);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600C6FD RID: 50941 RVA: 0x00218D8E File Offset: 0x00216F8E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SetGenderCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Gender != Gender.None)
			{
				this.Gender = other.Gender;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600C6FE RID: 50942 RVA: 0x00218DBF File Offset: 0x00216FBF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600C6FF RID: 50943 RVA: 0x00218DC8 File Offset: 0x00216FC8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 56U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.Gender = (Gender)input.ReadEnum();
				}
			}
		}

		// Token: 0x04004FFF RID: 20479
		private static readonly MessageParser<SetGenderCsReq> _parser = new MessageParser<SetGenderCsReq>(() => new SetGenderCsReq());

		// Token: 0x04005000 RID: 20480
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005001 RID: 20481
		public const int GenderFieldNumber = 7;

		// Token: 0x04005002 RID: 20482
		private Gender gender_;
	}
}
